package cn.falcon.fmobi.console.requestparam;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by haojie.zhang
 * Time 2017/10/20.
 */
public class AudienceQuery extends AbstractPagingSortParam {

    private Integer adveristerId;

    private Integer agentId;

    private String search;

    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    public void setSearch(String search) {
        this.search = search;
    }

    public Map<String,Object> getSearch(){
        Map<String,Object> map = new HashMap<>();
        map.put("search",this.search);
        map.put("adveristerId",this.adveristerId);
        map.put("agentId",this.agentId);
        map.put("startDate",this.startDate);
        map.put("endDate",this.endDate);
        map.put("status",this.status);
        return map;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAdveristerId() {
        return adveristerId;
    }

    public void setAdveristerId(Integer adveristerId) {
        this.adveristerId = adveristerId;
    }

    public Integer getAgentId() {
        return agentId;
    }

    public void setAgentId(Integer agentId) {
        this.agentId = agentId;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

}
